package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.PublicGroupSeniorEntity;
import com.xbongbong.saas.domain.entity.PublicGroupSeniorSortEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;
import java.util.Map;

/**
 * @author lrj
 * @date 2022/4/13 15:44
 */
@Repository
@Mapper
public interface PublicGroupSeniorSortDao {

    Integer insert(PublicGroupSeniorSortEntity publicGroupSeniorSortEntity);

    void insertBatch(@Param("list") List<PublicGroupSeniorSortEntity> publicGroupSeniorSortEntityList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    PublicGroupSeniorSortEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<PublicGroupSeniorSortEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    /**
     * 分组排序
     * @param list
     * @param corpid
     */
    Integer updateBatchDel(@Param("list") List<PublicGroupSeniorSortEntity> list,@Param("corpid") String corpid);

    Integer updateBatch(@Param("list") List<PublicGroupSeniorSortEntity> list, @Param("corpid") String corpid);
}
